package com.esms.struts.service;

import com.esms.bean.Employee;
import com.esms.bean.Salaryserviceemployee;
import com.esms.bean.SalaryserviceemployeeDAO;

public class SalaryServiceService {
	private SalaryServiceService() {}
	public static SalaryServiceService $ = new SalaryServiceService(); 
	
	public void createNewSalaryService(Salaryserviceemployee salaryService) {
		SalaryserviceemployeeDAO.$.insert(salaryService);
	}
	
	public Salaryserviceemployee getSalaryService(int serviceId) {
		return SalaryserviceemployeeDAO.$.findById(serviceId);
	}
	
	public Employee getEmployee(Salaryserviceemployee service){
		return EmployeeService.$.getEmployee(service.getFfemployeeId());
	}
}
